package cn.tedu.kcircle.attachment.repository.persist;

import cn.tedu.kcircle.attachment.repository.model.AttachAddModel;
import cn.tedu.kcircle.attachment.repository.model.AttachLogAddModel;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface AttachmentRepository {
    List<String> uploadBatch(MultipartFile[] multipartFile);
    Long attachLogAdd(AttachLogAddModel attachLogAddModel);

    Long insertAttach(AttachAddModel attachAddModel);

    List<Long> insertBatchAttach(List<AttachAddModel> attachAddModels);
    List<Long> insertBatchAttachLog(List<AttachLogAddModel> attachLogAddModels);

//    ResponseEntity<byte[]> download(String fileName);
}
